import React from 'react';
import { showToast } from '../../../components/Toast';
import { useToast } from '../../../components/ToastOne';

export default function Index() {
  const { show } = useToast()

  return <>
    <div
      style={{
        marginTop: 100
      }}
      onClick={() => {
        showToast('sadasds')
      }}
    >
      aaaa
    </div>

    <div
      onClick={() => {
        show('guiyu')
      }}
    >
      bbb
    </div>
  </>
}